﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using PetaPoco;
using System.Web.Mvc;
namespace MVC.Music.Data.Models
{
    [TableName("tbl_Track")]
    [PrimaryKey("TrackID", autoIncrement = true)]
    public class TrackModel
    {
        public long TrackID { get; set; }
        [Ignore]
        public GenresTrackModel GenresTrack { get; set; }
        [ResultColumn]
        public List<BitrateTrackModel> Bitrates { get; set; }
        [Display(Name = "Tên bài hát")]
        public string Name { get; set; }
        [Display(Name = "Ngày phát hành")]
        public DateTime CreatedDate { get; set; }
        [Ignore]
        public PeopleModel MusicianID { get; set; }
        public string Lyric { get; set; }
        public string ViettelRingBackToneCode { get; set; }
        public string MobiRingBackToneCode { get; set; }
        public string VinaRingBackToneCode { get; set; }
        public float DownloadPrice { get; set; }
        public float StreamingPrice { get; set; }
        public float RingbackSubscriptionPrice { get; set; }
        [Display(Name = "Lượt nghe")]
        public int ListenNumber { get; set; }
        [Display(Name = "Lượt download")]
        public int DownloadNumber { get; set; }
        [Display(Name = "Thời lượng")]
        public float Duration { get; set; }
    }
}
